﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="WebUser_List.aspx.cs" Inherits="TimKen.Web.Admin.WebUser.WebUser_List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
    <%=GetLangString("MenuWebUserList")%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
    <!-- 自定义用户搜索 -->
    <div class="form-div">
        <img src="../images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
        <!-- 账号 -->
        <%=GetLangString("UserName")%>：<asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
        <!-- 真实姓名 -->
        <%=GetLangString("RealName")%>：<asp:TextBox ID="txtRealName" runat="server"></asp:TextBox>
        <!-- 公司 -->
        <%=GetLangString("Company")%>：<asp:TextBox ID="txtCompany" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" CssClass="button" OnClick="btnSearch_Click" />
    </div>
    <div class="list-div">
        <!-- 客户列表 -->
        <asp:GridView ID="grdWebUser" runat="server" AutoGenerateColumns="False" DataKeyNames="UserName"
            AllowSorting="True" OnRowCommand="grdWebUser_RowCommand" CssClass="grid">
            <Columns>
                <asp:TemplateField>
                    <ItemStyle Width="80" />
                    <HeaderTemplate>
                        <%=GetLangString("UserName")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("UserName")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="80" />
                    <HeaderTemplate>
                        <%=GetLangString("NickName")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("NickName")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="100" />
                    <HeaderTemplate>
                        <%=GetLangString("RealName")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("RealName")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="150" />
                    <HeaderTemplate>
                        <%=GetLangString("Company")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("Company")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="160" />
                    <HeaderTemplate>
                        <%=GetLangString("Telephone")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("Phone")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="160" />
                    <HeaderTemplate>
                        <%=GetLangString("Email")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("Email")%>
                    </ItemTemplate>
                </asp:TemplateField>
                  <asp:TemplateField>
                    <ItemStyle Width="160" />
                    <HeaderTemplate>
                        <%=GetLangString("Apply")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#GetBoolPic(Convert.ToBoolean(Eval("IsApply").ToString()))%>
                    </ItemTemplate>
                </asp:TemplateField>
                
                    <asp:TemplateField>
                    <ItemStyle Width="160" />
                    <HeaderTemplate>
                        <%=GetLangString("IsValid")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#GetBoolPic(Convert.ToBoolean(Eval("IsValid").ToString()))%>
                    </ItemTemplate>
                </asp:TemplateField>
                
                
                
                <asp:TemplateField>
                    <ItemStyle Width="80" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("Operation")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <a href='WebUser_Info.aspx?UserName=<%#DataBinder.Eval(Container.DataItem, "UserName")%>'
                            title='<%#GetLangString("Edit")%>'>
                            <img src="../images/icon_edit.gif" /></a>
                        <asp:ImageButton ID="btnDelete" runat="server" ToolTip='<%#GetLangString("Delete")%>'
                            CommandName="DeleteEvent" CommandArgument='<%#Eval("UserName")%>' ImageUrl="~/Admin/images/icon_drop.gif"
                            OnClientClick="return deleteConfirm()" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle HorizontalAlign="Center" />
        </asp:GridView>
        <div class="pager-div">
            <ux:AspNetPager ID="AspNetPager1" runat="server" Width="100%" ShowPageIndexBox="Always"
                HorizontalAlign="right" EnableTheming="true" AlwaysShow="true" PageIndexBoxType="DropDownList"
                OnPageChanged="AspNetPager1_PageChanged" ImagePath="/images/" 
                        NavigationButtonType="Image" ButtonImageNameExtension="n" 
                        CpiButtonImageNameExtension="r" PagingButtonType="Image">
            </ux:AspNetPager>
        </div>
    </div>
</asp:Content>
